[VERSN2]
unlock_memory all
speedreflect auto

if file_exists absolute LANGUAGES\ENGLISH.BIN
do
append _Strings\English.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\CHINESE.BIN
do
append _Strings\Chinese.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\DANISH.BIN
do
append _Strings\Danish.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\FINNISH.BIN
do
append _Strings\Finnish.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\FRENCH.BIN
do
append _Strings\French.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\GERMAN.BIN
do
append _Strings\German.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\ITALIAN.BIN
do
append _Strings\Italian.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\KOREAN.BIN
do
append _Strings\Korean.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\POLISH.BIN
do
append _Strings\Polish.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\SPANISH.BIN
do
append _Strings\Spanish.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\SWEDISH.BIN
do
append _Strings\Swedish.end 
else
// do nothing
end

if collection_exists FRONTEND\FRONTB.LZC TPKBlocks DEFAULT
do
bind_textures synchronize Frontend\FrontB.lzc TPKBlocks DEFAULT _Textures\FrontB\FrontendTextures
else
bind_textures synchronize Frontend\FrontB.lzc TPKBlocks FRONTENDTEXTURES _Textures\FrontB\FrontendTextures
end

// Vinyls
combobox "512x Vinyl" "1024x Vinyl" "Choose Vinyl Resolution"

"512x Vinyl"
move_file override relative absolute _Vinyls\512\VINYLS.BIN CARS\DBRS9\VINYLS.BIN

"1024x Vinyl"
move_file override relative absolute _Vinyls\1024\VINYLS.BIN CARS\DBRS9\VINYLS.BIN

end

// Copy car files
if directory_exists absolute CARS\DBRS9
do // nothing
else
create_folder absolute CARS\DBRS9
end

move_file override relative absolute _Main\CARS\DBRS9\GEOMETRY.BIN CARS\DBRS9\GEOMETRY.BIN
move_file override relative absolute _Main\CARS\DBRS9\TEXTURES.BIN CARS\DBRS9\TEXTURES.BIN

import override GLOBAL\GLOBALB.LZC DBModelParts "_CarParts\DBMODELPARTS.bin"
import override GLOBAL\GLOBALB.LZC Collisions "_CarParts\COLLISIONS.bin"
import override GLOBAL\GLOBALB.LZC CarTypeInfos "_CarParts\CARTYPEINFOS.bin"
watermark "Binary Installer by Vee-Tec"